<?php
/**
 * 匿名管理
 * Created by deng.
 * User: deng
 * Date: 2016/11/15
 * Time: 17:00
 */
class PinkWithdrawal extends AdminBase{

    protected $do;

    function __construct(){
        parent::__construct();
        $this->do = 'withdrawalManage';
        $this->{$this->op}();
    }

    function indexAction(){
        include_once template("admin_v2/withdrawal");
        exit();
    }

    function indexTestAction(){
        include_once template("admin_v2/withdrawalTest");
        exit();
    }

    function listAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'list',
        ], $this->req));
    }

    function listTestAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'listTest',
        ], $this->req));
    }

    function updateAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'update',
        ], $this->req));
    }

    function updateTestAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'updateTest',
        ], $this->req));
    }
}

new PinkWithdrawal;